package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.AnalyseCommentsMapper;
import com.ruoyi.system.domain.AnalyseComments;
import com.ruoyi.system.service.IAnalyseCommentsService;

/**
 * 评论Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-09-02
 */
@Service
public class AnalyseCommentsServiceImpl implements IAnalyseCommentsService 
{
    @Autowired
    private AnalyseCommentsMapper analyseCommentsMapper;

    /**
     * 查询评论
     * 
     * @param id 评论主键
     * @return 评论
     */
    @Override
    public AnalyseComments selectAnalyseCommentsById(Long id)
    {
        return analyseCommentsMapper.selectAnalyseCommentsById(id);
    }

    /**
     * 查询评论列表
     * 
     * @param analyseComments 评论
     * @return 评论
     */
    @Override
    public List<AnalyseComments> selectAnalyseCommentsList(AnalyseComments analyseComments)
    {
        return analyseCommentsMapper.selectAnalyseCommentsList(analyseComments);
    }

    /**
     * 新增评论
     * 
     * @param analyseComments 评论
     * @return 结果
     */
    @Override
    public int insertAnalyseComments(AnalyseComments analyseComments)
    {
        return analyseCommentsMapper.insertAnalyseComments(analyseComments);
    }

    /**
     * 修改评论
     * 
     * @param analyseComments 评论
     * @return 结果
     */
    @Override
    public int updateAnalyseComments(AnalyseComments analyseComments)
    {
        return analyseCommentsMapper.updateAnalyseComments(analyseComments);
    }

    /**
     * 批量删除评论
     * 
     * @param ids 需要删除的评论主键
     * @return 结果
     */
    @Override
    public int deleteAnalyseCommentsByIds(Long[] ids)
    {
        return analyseCommentsMapper.deleteAnalyseCommentsByIds(ids);
    }

    /**
     * 删除评论信息
     * 
     * @param id 评论主键
     * @return 结果
     */
    @Override
    public int deleteAnalyseCommentsById(Long id)
    {
        return analyseCommentsMapper.deleteAnalyseCommentsById(id);
    }
}
